﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UFIDA.U9.Cust.XH.PlugBE.Tool
{
    public class OAFlowParam
    {
        /// <summary>
        /// 流程Id
        /// </summary>
        public string workflowId { get; set; }
        /// <summary>
        /// 流程标题
        /// </summary>
        public string requestName { get; set; }
        public List<FileNV> mainData { get; set; }
        //public List<DetailDataModel> detailData { get; set; }
        public dynamic detailData { get; set; }
    }


    public class DetailDataModel
    {
        public string tableDBName { get; set; }
        public List<DetailDataModelChild> workflowRequestTableRecords = new List<DetailDataModelChild>();
    }

    public class DetailDataModel2 : DetailDataModel
    {
        public string deleteAll { get; set; }
    }
    public class DetailDataModelChild
    {
        public int recordOrder = 0;
        public List<FileNV> workflowRequestTableFields = new List<FileNV>();
    }
    public class FileNV
    {
        public FileNV(string n, object v)
        {
            this.fieldName = n;
            this.fieldValue = v;
        }
        public string fieldName { get; set; }
        public object fieldValue { get; set; }
    }
}
